package com.lovo.commom.WebRemote;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDate;

@FeignClient(name = "sscwebtwo", path = "/user", contextId = "webUserId")
public interface IWebUserRemote {
    @RequestMapping("updateUserAuditState")
    public void updateUserAuditState(@RequestParam("userName") String userName, @RequestParam("isPass") Integer isPass, @RequestParam("auditState") Integer auditState,
                                     @RequestParam("content") String content, @RequestParam("adminName") String adminName, @RequestParam("updateDate") String updateDate);

    @RequestMapping("updateUserFreezeStatus/{userName}/{frozenState}/{cause}")
    public void updateUserFreezeStatus(@PathVariable("userName") String userName, @PathVariable("frozenState") Integer frozenState, @PathVariable("cause") String cause);

    @GetMapping("addMoney/{userName}/{money}")
    public boolean addMoney(@PathVariable("userName") String userName,@PathVariable("money") float money);
}
